<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<f:view encoding="UTF-8" contentType="text/html">
<h:head>
<title>Cadastro</title>
<link rel="Stylesheet" href="estilo.css"></link>
</h:head>
<h:body> 
<h:form>
<table width="80%" align="center">
<tr>
<td align="center" colspan="6" bgcolor="#AAAAFF" ><h:outputText value="Cadastro de Dentista" /></td>
</tr>
<tr>
<td align="center" colspan="6" ><br /></td>
</tr>
<tr align="center">
<td width="16.6%" align="center"><h:outputLabel value="nome:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.nome}" /></td>
<td width="16.6%" align="center"><h:outputLabel value="login:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{usuario.login}" size="40"/></td>
<td width="16.6%" align="center"><h:outputLabel value="Senha:" /></td>
<td width="16.6%" align="left"><h:inputSecret value="#{usuario.senha}" /></td>
</tr>
<tr align="center">
<td width="16.6%" align="center"><h:outputLabel value="Endereço:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.endereco}" /></td>
<td width="16.6%" align="center"><h:outputLabel value="Bairro:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.bairro}"/></td>
<td width="16.6%" align="center"><h:outputLabel value="UF:" /></td>
<td width="16.6%" align="left"><h:inputSecret value="#{dentista.uf}" /></td>
</tr>
<tr align="center">
<td width="16.6%" align="center"><h:outputLabel value="CPF:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.cpf}" /></td>
<td width="16.6%" align="center"><h:outputLabel value="Identidade:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.rg}"/></td>
<td width="16.6%" align="center"><h:outputLabel value="Sexo:" /></td>
<td width="16.6%" align="left"><h:inputSecret value="#{dentista.sexo}" /></td>
</tr>
<tr align="center">
<td width="16.6%" align="center"><h:outputLabel value="Email:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.email}" /></td>
<td width="16.6%" align="center"><h:outputLabel value="Sobre nome:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.sobre_nome}"/></td>
<td width="16.6%" align="center"><h:outputLabel value="Telefone:" /></td>
<td width="16.6%" align="left"><h:inputSecret value="#{dentista.telefone}" /></td>
</tr>
<tr align="center">
<td width="16.6%" align="center"><h:outputLabel value="Celular:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.celular}" /></td>
<td width="16.6%" align="center"><h:outputLabel value="CRO:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{dentista.cro}"/></td>
<td width="16.6%" align="center"><h:outputLabel value="Cidade:" /></td>
<td width="16.6%" align="left"><h:inputSecret value="#{dentista.cidade_pessoa}" /></td>
</tr>
<tr align="center">
<td width="16.6%" align="center"><h:outputLabel value="login:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{usuario.login}" /></td>
<td width="16.6%" align="center"><h:outputLabel value="Senha:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{usuario.senha}"/></td>
<td width="16.6%" align="center"><h:outputLabel value="Permissão Descrição:" /></td>
<td width="16.6%" align="left"><h:inputText value="#{usuario.permissao.descricao}"/></td>
</tr>
<tr>
<td width="16.6%" align="right" ><h:commandButton value="Cadastrar" action="#{dentista.salvar()}" /></td>
</tr>
</table>
</h:form>
</h:body> 
</f:view>
</html>
